home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _ProcessGetName.au3 < prev    next >
Text File  |  2007-09-08  |  205b  |  8 lines

  1. #include <Process.au3>
  2.  
  3. Run("notepad.exe")
  4. WinWaitActive("Untitled - Notepad", "")
  5. $pid = WinGetProcess("Untitled - Notepad", "")
  6. $name = _ProcessGetName($pid)
  7.  
  8. MsgBox(0, "Notepad - " & $pid, $name)